package com.duoduo.demo.springnoxml.job;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.duoduo.demo.springnoxml.service.AppService;

/**
 * 发送短信定时任务
 * @author chengesheng
 * @date 2017年8月1日 上午11:49:29
 */
@Component
public class SendSmsJob {

	@Autowired
	private AppService appService;

	@Scheduled(cron = "${quartz.sendSms.expression}")
	public void sendSms() {
		appService.showSystemInfo();
	}
}
